<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        Hello from Facelets. <p><a href="login/login.xhtml">Login to proceed.</a></p>
        <p><a href="povjerljivo/povjerljivo.xhtml">Or try without login.</a></p>
        
            <f:view>
        <h:form >
            <h:inputText value="#{testUserController.firstName}"/><br/>
            <h:inputText value="#{testUserController.lastName}"/><br/>
            <h:inputText value="#{testUserController.email}"/><br/>
            <h:commandButton value="register"   action="#{testUserController.createUser()}"/>
            <h:commandButton value="create"   action="#{userManagedBean.registerUser()}"/>
        </h:form>
    </f:view>
    </h:body>
</html>

